import request from '@/utils/request'

//配置分页列表
export function getBlackPageList(data) {
	return request({
		method: 'get',
		url: 'tbSysBlack/queryPageList',
		params: data
	})
}

//添加配置
export function addedBlack(data) {
	return request({
		method: 'post',
		url: 'tbSysBlack/add',
		data
	})
}

//删除配置
export function deleteBlack(id) {
	return request({
		method: 'get',
		url: 'tbSysBlack/delete/' + id
	})
}

//修改配置
export function updateBlack(data) {
	return request({
		method: 'post',
		url: 'tbSysBlack/update',
		data,
	})
}

//配置详情
export function blackDetail(id) {
	return request({
		method: 'get',
		url: 'tbSysBlack/query/' + id,
	})
}